import request from '@/utils/request'
// 列表
export function getDataList(query) {
  return request({
    url: '/car/carMaintenance/queryPageList',
    method: 'get',
    params: query
  })
}

// 查询详细 
export function getDetails(id) {
  return request({
    url: '/car/carMaintenance/' + id,
    method: 'get'
  })
}

// 查询基础信息
export function getCarMaintenanceInfo(id) {
  return request({
    url: '/car/carMaintenance/getCarMaintenanceInfo/' + id,
    method: 'get'
  })
}

// 删除
export function delMaintenance(id) {
  return request({
    url: '/car/carMaintenance/' + id,
    method: 'post'
  })
}

// 维修记录
export function queryPageRecord(query) {
  return request({
    url: '/car/carMaintenance/queryPageRecord',
    method: 'get',
    params: query
  })
}